var reportFromConfig = {

    settlementFeeCost: {
        title: "结算费用报表",
        url: "../report/settlementFeeCost",
        itemList: [
            {
                key: "处置费",
                value: "disposalFee"
            },
            {
                key: "过车装卸费",
                value: "overloadinghandingFee"
            },
            {
                key: "打膜费",
                value: "filmFee"
            },
            {
                key: "分拣费",
                value: "sortingFee"
            },
            {
                key: "理货费",
                value: "tallyFee"
            },
            {
                key: "超板位费",
                value: "excessboardFee"
            },
            {
                key: "其他费用",
                value: "otherFee"
            }
        ],
        display: [
            {
                key: "客户编号",
                value: "custNo",
                enable: false
            },
            {
                key: "客户名称",
                value: "custName",
                enable: false
            },
            {
                key: "合计",
                value: "total",
                enable: false
            },
            {
                key: "冷藏费",
                value: "refrigerationFee",
                enable: false
            },
            {
                key: "装卸费",
                value: "handingFee",
                enable: true
            }
        ],
        searchConditions:{
            "custNo":"客户编号",
            "beginDate":"开始时间",
            "endDate":"结束时间"
        },
        details: {
            detailName:"结算费用详情",
            url:"../page/settlementDetails",
            param:"custNo"
        }


    },
    custInoutStock: {
        title: "客户进出存表",
        url: "../report/custInoutStock",
        //url: "../report/custInoutStockPaging",
        itemList: [
            {
                key: "入库量T",
                value: "inWeight"
            },
            {
                key: "入库板",
                value: "inPallet"
            },
            {
                key: "出库量",
                value: "outQty"
            },
            {
                key: "出库量T",
                value: "outWeight"
            },
            {
                key: "出库板",
                value: "outPallet"
            },
            {
                key: "库存板",
                value: "stockQty"
            },
            {
                key: "累计库存件数",
                value: "totalQty"
            },
            {
                key: "累计库存重量",
                value: "totalWeight"
            },
            {
                key: "累计库存板数",
                value: "totalPallets"
            }


        ],
        display: [
            {
                key: "客户编号",
                value: "custNo",
                enable: false
            },
            {
                key: "客户名称",
                value: "custName",
                enable: false
            },
            {
                key: "入库件数",
                value: "inQty",
                enable: false
            },
            {
                key: "入库吨数",
                value: "inWeight",
                enable: true
            }
        ],
        searchConditions:{
            "custNo":"客户编号",
            "contractNo":"合同编号",
            "prodName":"商品名称",
            "prodNo":"商品代码",
            "batchNo":"批次号",
            "extraNo":"来货信息",
            "beginDate":"开始时间",
            "endDate":"结束时间"
        },
        details: false
    },
    distributeStaffSum: {
        title: "物流人员成本汇总表",
        url: "../report/distributeStaffSummary",

        itemList: [
            {
                key: "司机提成",
                value: "motorFee"
            },
            {
                key: "跟车员提成",
                value: "followerFee"
            },
            {
                key: "搬运费",
                value: "freightFee"
            },
            {
                key: "路桥费",
                value: "roadFee"
            },
            {
                key: "租车费",
                value: "rentalFee"
            },
            {
                key: "成本合计",
                value: "totalFeeSum"
            },
            {
                key: "利润",
                value: "profit"
            }
        ],
        display: [
            {
                key: "费用对象",
                value: "costobject",
                enable: false
            },
            {
                key: "配送费",
                value: "totalFee",
                enable: false
            },
            {
                key: "成本",
                value: "totalFeeSum",
                enable: true
            },
            {
                key: "利润",
                value: "profit",
                enable: true
            }
        ],
        searchConditions: {
            "beginDate": "开始时间",
            "endDate": "结束时间"
        },
        details: {
            detailName:"查看物流人员成本汇总详情",
            name:"custPeriodDistributeSettlement",
            url:"../page/distributeStaffSummaryDetails",
            param:"costobject"
        }
    },
    distributeVehicleSum: {
        title: "物流车辆成本汇总表",
        url: "../report/distributeVehicleSummary",
        itemList: [
            {
                key: "司机提成",
                value: "motorFee"
            },
            {
                key: "跟车员提成",
                value: "followerFee"
            },
            {
                key: "搬运费",
                value: "freightFee"
            },
            {
                key: "租车费",
                value: "rentalFee"
            },
            {
                key: "路桥费",
                value: "roadFee"
            },
            {
                key: "成本合计",
                value: "totalFeeSum"
            },
            {
                key: "利润",
                value: "profit"
            }


        ],
        display: [
            {
                key: "费用对象",
                value: "vehicleNo",
                enable: false
            },
            {
                key: "配送费",
                value: "totalFee",
                enable: false
            },
            {
                key: "成本",
                value: "totalFeeSum",
                enable: true
            },
            {
                key: "利润",
                value: "profit",
                enable: true
            }
        ],
        searchConditions: {
            "beginDate": "开始时间",
            "endDate": "结束时间"
        },
        details: {
            detailName:"查看物流车辆成本汇总详情",
            name:"custPeriodDistributeSettlement",
            url:"../page/distributeVehicleSummaryDetails",
            param:"vehicleNo"
        }
    },
    custStockDetail: {
        title: "客户库存明细表",
        url: "../report/custStockDetail",
        itemList: [
            {
                key: "商品规格",
                value: "cSpec"
            }, {
                key: "库存开始时间",
                value: "stockStartDate"
            }, {
                key: "库存结束时间",
                value: "stockEndDate"
            },
            {
                key: "入库日期",
                value: "entryDate"
            },
            {
                key: "件数",
                value: "qty"
            }, {
                key: "吨数",
                value: "weight"
            },
            {
                key: "板数",
                value: "pallets"
            },
            {
                key: "调出件数",
                value: "outQty"
            },
            {
                key: "期末库存",
                value: "finalStock"
            },
            {
                key: "生产日期",
                value: "productionDate"
            },
            {
                key: "保质期",
                value: "useByDate"
            },
            {
                key: "滞库期",
                value: "stayDate"
            },
            {
                key: "QA控制",
                value: "qaFlag"
            }
        ],
        display: [
            {
                key: "客户编号",
                value: "custNo",
                enable: false
            },
            {
                key: "客户名称",
                value: "custName",
                enable: false
            },
            {
                key: "批次号",
                value: "batchNo",
                enable: false
            },
            {
                key: "商品名称",
                value: "prodName",
                enable: true
            },
            {
                key: "件数",
                value: "qty",
                enable: true
            }
        ],
        searchConditions: {
            "custNo":"客户编号",
            "custName":"客户名称",
            "prodNo":"商品编号",
            "prodName":"商品名称",
            "beginDate": "开始时间",
            "endDate": "结束时间"
        },
        details: false,
        summary:{
            text:"商品批号小计:",
            field:"batchNo",
            textField:"custName",
            list:{
                qty:"1",
                weight:"1",
                pallets:"1",
                outQty:"1",
                finalStock:""
            }
        }
    },
    custPeriodDistributeSettlement: {
        title: "本期客户物流结算表",
        url: "../report/custPeriodDistributeSettlement",
        itemList: [
            {
                key: "客户编号",
                value: "custNo"
            },
            {
                key: "客户名称",
                value: "custName"
            },
            {
                key: "结算单号",
                value: "billNo"
            },
            {
                key: "结算日期",
                value: "settleDate"
            },
            {
                key: "结算金额",
                value: "totalAmt"
            },
            {
                key: "已收金额",
                value: "payAmt"
            },
            {
                key: "未收金额",
                value: "notReceivedAmt"
            }
        ],
        display: [
            {
                key: "客户名称",
                value: "custName",
                enable: false
            },
            {
                key: "结算日期",
                value: "settleDate",
                enable: false
            },
            {
                key: "结算金额",
                value: "totalAmt",
                enable: false
            },
            {
                key: "已收金额",
                value: "payAmt",
                enable: false
            },
            {
                key: "未收金额",
                value: "notReceivedAmt",
                enable: false
            }
        ],
        searchConditions: {
            "custNo":"客户编号",
            "beginDate": "开始时间",
            "endDate": "结束时间"
        },
        details: {
            detailName:"查看本期客户物流结算详情",
            name:"custPeriodDistributeSettlement",
            url:"../page/custPeriodSettlementDetails",
            param:"billNo"
        }
    },
    custPeriodStorageSettlement: {
        title: "本期客户仓储结算表",
        url: "../report/custPeriodStorageSettlement",
        itemList: [
            {
                key: "客户编号",
                value: "custNo"
            },
            {
                key: "客户名称",
                value: "custName"
            },
            {
                key: "结算单号",
                value: "billNo"
            },
            {
                key: "结算日期",
                value: "settleDate"
            },
            {
                key: "结算金额",
                value: "totalAmt"
            },
            {
                key: "已收金额",
                value: "payAmt"
            },
            {
                key: "未收金额",
                value: "notReceivedAmt"
            }
        ],
        display: [
            {
                key: "客户名称",
                value: "custName",
                enable: false
            },
            {
                key: "结算日期",
                value: "settleDate",
                enable: false
            },
            {
                key: "结算金额",
                value: "totalAmt",
                enable: false
            },
            {
                key: "已收金额",
                value: "payAmt",
                enable: false
            },
            {
                key: "未收金额",
                value: "notReceivedAmt",
                enable: false
            }
        ],
        searchConditions: {
            "custNo":"客户编号",
            "beginDate": "开始时间",
            "endDate": "结束时间"
        },
        details: {
            detailName:"查看本期客户仓储结算详情",
            name:"custPeriodStorageSettlement",
            url:"../page/custPeriodSettlementDetails",
            param:"billNo"
        }
    }
}

//获取浏览器url参数映射集
var model = util.getUrlParams();

var config=reportFromConfig[model["formName"]];
var vue = new Vue({
    el: ".container",
    data: {
        config: config,
        pageTitle: config.title,
        queryParams: model,
        eventHub: new Vue()
    },
    components: {},
    methods: {}
})







